package com.kma.summer2012.client.events.engineer;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class ViewMapEvent extends GwtEvent<ViewMapEvent.ViewMapEventHandler> {
    public static GwtEvent.Type<ViewMapEventHandler> TYPE = new GwtEvent.Type<ViewMapEventHandler>();

    public interface ViewMapEventHandler extends EventHandler {
        void onViewMap(ViewMapEvent event);
    }

    @Override
    public Type<ViewMapEventHandler> getAssociatedType() {
        return TYPE;
    }


    public static Type<ViewMapEventHandler> getType() {
        return TYPE;
    }

    protected void dispatch(ViewMapEventHandler handler) {
        handler.onViewMap(this);
    }
}
